package com.sim.simserial.view


import android.widget.ImageView
import androidx.databinding.BindingAdapter
import com.sim.simserial.R


class BindingAdapters {
    @BindingAdapter("app:srcCompat")
    fun setImageResource(imageView: ImageView, isSelect: Boolean) {
        if (isSelect) {
            imageView.setImageResource(R.mipmap.ic_select)
        } else {
            imageView.setImageResource(R.mipmap.ic_select_un)
        }
    }
}